package com.ysy.tz.mfg.entity;

public class AreaEntity extends BaseEntity {
    private String areaCode;
    private String areaName;
    private String parentAreaCode;
    private String parentAreaName;
    private String isslay = "Y";

    public AreaEntity() {
    }

    public String getAreaCode() {
        return this.areaCode;
    }

    public String getAreaName() {
        return this.areaName;
    }

    public String getParentAreaCode() {
        return this.parentAreaCode;
    }

    public String getParentAreaName() {
        return this.parentAreaName;
    }

    public String getIsslay() {
        return this.isslay;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public void setParentAreaCode(String parentAreaCode) {
        this.parentAreaCode = parentAreaCode;
    }

    public void setParentAreaName(String parentAreaName) {
        this.parentAreaName = parentAreaName;
    }

    public void setIsslay(String isslay) {
        this.isslay = isslay;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof AreaEntity)) {
            return false;
        } else {
            AreaEntity other = (AreaEntity)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label71: {
                    Object this$areaCode = this.getAreaCode();
                    Object other$areaCode = other.getAreaCode();
                    if (this$areaCode == null) {
                        if (other$areaCode == null) {
                            break label71;
                        }
                    } else if (this$areaCode.equals(other$areaCode)) {
                        break label71;
                    }

                    return false;
                }

                Object this$areaName = this.getAreaName();
                Object other$areaName = other.getAreaName();
                if (this$areaName == null) {
                    if (other$areaName != null) {
                        return false;
                    }
                } else if (!this$areaName.equals(other$areaName)) {
                    return false;
                }

                label57: {
                    Object this$parentAreaCode = this.getParentAreaCode();
                    Object other$parentAreaCode = other.getParentAreaCode();
                    if (this$parentAreaCode == null) {
                        if (other$parentAreaCode == null) {
                            break label57;
                        }
                    } else if (this$parentAreaCode.equals(other$parentAreaCode)) {
                        break label57;
                    }

                    return false;
                }

                Object this$parentAreaName = this.getParentAreaName();
                Object other$parentAreaName = other.getParentAreaName();
                if (this$parentAreaName == null) {
                    if (other$parentAreaName != null) {
                        return false;
                    }
                } else if (!this$parentAreaName.equals(other$parentAreaName)) {
                    return false;
                }

                Object this$isslay = this.getIsslay();
                Object other$isslay = other.getIsslay();
                if (this$isslay == null) {
                    if (other$isslay == null) {
                        return true;
                    }
                } else if (this$isslay.equals(other$isslay)) {
                    return true;
                }

                return false;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof AreaEntity;
    }

    public int hashCode() {
        int result = 1;
        Object $areaCode = this.getAreaCode();
        result = result * 59 + ($areaCode == null ? 43 : $areaCode.hashCode());
        Object $areaName = this.getAreaName();
        result = result * 59 + ($areaName == null ? 43 : $areaName.hashCode());
        Object $parentAreaCode = this.getParentAreaCode();
        result = result * 59 + ($parentAreaCode == null ? 43 : $parentAreaCode.hashCode());
        Object $parentAreaName = this.getParentAreaName();
        result = result * 59 + ($parentAreaName == null ? 43 : $parentAreaName.hashCode());
        Object $isslay = this.getIsslay();
        result = result * 59 + ($isslay == null ? 43 : $isslay.hashCode());
        return result;
    }

    public String toString() {
        return "AreaEntity(areaCode=" + this.getAreaCode() + ", areaName=" + this.getAreaName() + ", parentAreaCode=" + this.getParentAreaCode() + ", parentAreaName=" + this.getParentAreaName() + ", isslay=" + this.getIsslay() + ")";
    }
}
